<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="/GoHome.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<form action="/Cs420Web/Album" method="get">


		<table width="100%" border="0" cellspacing="0" cellpadding="0">

			<tr>
				<td>Choose An album:</td>
				<td><select id="searchType" name="idAlbum">
						<c:forEach items="${albums}" var="album">
							<option value="${album.idAlbum}">${album.title}</option>
						</c:forEach>
				</select></td>
			</tr>


			<tr>
				<td>Choose a picture:</td>
				<td><select id="searchType" name="idPicture">
						<c:forEach items="${pictures}" var="picture">
							<option value="${picture.idPicture}">${picture.url}</option>
						</c:forEach>
				</select></td>
			</tr>


			<tr>
				<td>Title:</td>
				<td><input type="text" name="title" /></td>
			</tr>

			<tr>
				<td>Comments</td>
				<td><textarea name="comments" cols="40" rows="5"></textarea></td>
			</tr>

			<tr>
				<td><input type="submit" value="Add photo" id="action"
					name="addPhoto" /></td>
			</tr>

		</table>
	</form>
</body>
</html>